package com.orhanobut.hawk;
import ohos.app.Context;

/**
 * 加密封装
 */
public class ConcealEncryption implements Encryption {
    public ConcealEncryption(Context context) {}

    @Override
    public boolean init() {
        return true;
    }

    @Override
    public String encrypt(String key, String plainText) throws Exception {
        return Rc4.encryRc4String(key, plainText);
    }

    @Override
    public String decrypt(String key, String cipherText) throws Exception {
        return Rc4.decryRc4(key, cipherText);
    }
}
